﻿<UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  x:Class="Dashboard.ClusterResultView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Dashboard="clr-namespace:Dashboard" 
    xmlns:NetworkDiagram="clr-namespace:UI.NetworkDiagram;assembly=UI.NetworkDiagram" 
    xmlns:Dendrogram="clr-namespace:UI.Dendrogram;assembly=UI.Dendrogram" 
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition MinHeight="200"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <RadioButton x:Name="rdGridView" Content="Grid" IsChecked="false" Click="rdGridView_Click"/>
            <RadioButton x:Name="rdNetworkView" Content="Network" IsChecked="true" Click="rdNetworkView_Click"/>
            <RadioButton x:Name="rdDendrogram" Content="Dendrogram" IsChecked="false" Click="rdDendrogram_Click"/>
        </StackPanel>
        
        <!-- cluster grid -->
        <Dashboard:ClusterGrid x:Name="clusterGrid" Grid.Row="1" Visibility="Collapsed"/>
        <NetworkDiagram:NetworkCanvas x:Name="clusterNetwork" Grid.Row="1" Visibility="Visible"/>
        <Dashboard:ClusterDendrogram x:Name="clusterDendrogram" Grid.Row="1" Visibility="Collapsed"/>
        
        <controls:GridSplitter VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Row="2"/>
        
        <!-- term grid -->
        <Dashboard:TermGrid x:Name="termGrid" Grid.Row="3"/>
    </Grid>
</UserControl>
